<?php if (isset($usersList)): ?>
<?php //pr ($usersList) ?>
<?php //pr ($lemur) ?>
<?php #pr ($typeRels) ?>
<ul id="usersList">
	<?php foreach ($usersList as $k => $v): ?>
		<?php
			$typeID = $v['UsersSoctype']['soctype_id'];
			$login = $v['User']['login'];
			if (isset($v['Foto'][0]['hash'])) {
				$image = '<img src="/photos/' . $v['User']['login'] . '/'. $v['Foto'][0]['hash'] . '_235.' . $v['Foto'][0]['ext'] . '" />';
				$scope = $v['Foto'][0]['form'];
			} else {
				$image = $lemur->noFoto($v['Profile']['sex']);
				$scope = 'tail';
			}
		?>
		<li class="<?php echo $scope ?>">
		<?php #pr($v) ?>
		<a title="<?php echo $login ?>: <?php echo $typeRels[$typeID] ?>%" href="/user/<?php echo $login ?>"><?php echo $image ?></a>

		<a class="link" href="/user/<?php echo $login ?>/message">сообщение</a>	
		</li>	
	<?php endforeach ?>
</ul>
<?php endif ?>
